package com.qlylkj.lbk.model.api

import com.qlylkj.lbk.model.bean.User
import com.qlylkj.lbk.model.bean.UserInfo
import com.qlylkj.lbk.model.bean.base.ResponseEntity
import com.qw.photo.pojo.BaseResult
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.QueryMap

interface UserApi {

    @POST("appapi/register")
    suspend fun register(@Body requestBody: RequestBody): ResponseEntity<Any>

    @POST("appapi/applogin")
    suspend fun login(@Body requestBody: RequestBody): ResponseEntity<User>

    @GET("appuser/queryById")
    suspend fun getUserInfo(@QueryMap options: MutableMap<String,Any>): ResponseEntity<UserInfo>

    @GET("appapi/unbound")
    suspend fun removeBind(@QueryMap options: MutableMap<String,Any>): ResponseEntity<Any>

}